import { http } from '@/utils/http/axios';

export function listKnife(data = {}) {
  return http.request({
    url: '/admin/base/knife/list',
    method: 'get',
    data,
  });
}

export function pageKnife(data = {}) {
  return http.request({
    url: '/admin/base/knife/page',
    method: 'post',
    data,
  });
}

export function addKnife(data = {}) {
  return http.request({
    url: '/admin/base/knife/add',
    method: 'post',
    data,
  });
}

export function updateKnife(data = {}) {
  return http.request({
    url: '/admin/base/knife/update',
    method: 'post',
    data,
  });
}

export function delKnife(data = {}) {
  return http.request({
    url: '/admin/base/knife/delete',
    method: 'post',
    data,
  });
}
